package com.mew.user.controller;

import com.mew.common.dc.db.ProfileService;
import com.mew.common.dc.mapper.JewelRecordMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/jewel")
public class JewelController {

    @Autowired
    private ProfileService profileService;

    @Autowired
    private JewelRecordMapper jewelRecordMapper;

    @RequestMapping("/buy")
    @ResponseBody
    public void buy(long uid,long jewel){
        //todo 谷歌验证
        int buyType = 0;
        double buyMoney = 0.00;
        //加钱

        profileService.doGold(uid,0,jewel,buyMoney, buyType);

    }


}
